package com.yiyang.cloud.service;

import com.yiyang.cloud.dao.UserRepository;
import com.yiyang.cloud.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepository userRepository;

    public User findByUserId(Long id) {
        return userRepository.findByUserId(id);
    }
}
